<?php
defined('IN_TS') or die('Access Denied.');

//捐赠证书

$wishid = intval($_GET['id']);

if($wishid == '') {
	header("HTTP/1.1 404 Not Found");
	header("Status: 404 Not Found");
	$title = '404';
	include pubTemplate("404");
	exit;
}
$strWish = aac('wish')->getWishByWishid($wishid);

$strWishUser = aac('wish')->find('wish_users','wishid='.$wishid.' and userid='.$GLOBALS['TS_USER']['userid'].' and status=2');

if(!$strWishUser){
	tsNotice('心愿尚未完成！');
}

include template("cert");

